// 全局getters
// 1,state的计算属性
// 2，快捷访问，使用getters精简对于模块中响应式数据的方法
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username
}
export default getters
